﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminIndex.aspx.cs" Inherits="GovernmentOfficeProject.LevelViewUI.admin.AdminIndex" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>管理员首页</title>
    <link rel="stylesheet" type="text/css" href="/css/index.css"/>
    <link rel="stylesheet" type="text/css" href="/lib/easyui/themes/default/easyui.css"/>
	<script src="/lib/easyui/jquery-1.8.0.min.js" type="text/javascript"></script>  
	<script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript">
	
	    function open1(plugin,url) {
	        if ($('#tt').tabs('exists', plugin)) {
	            $('#tt').tabs('select', plugin);
	        } else {
	            var html = [];
	            html.push('<iframe id="frame" name="frame" frameborder="0" style=" margin-left:-1px;"  src="');
	            html.push('/LevelViewUI/admin/'+url);
	            html.push('" width="100%" height="100%"></iframe> ');
	            
	            $('#tt').tabs('add', {
	                title: plugin,
	                content:html.join(''),
	                closable: true
	            });
	            html = [];

	            frame.location.href = url;//解决IE6 不自动加载页面的问题
	        }
	    }
		</script>
		<style type="text/css">
		    html,body
            {
                padding:0;
                margin:0;
                font-size:12px;
	            text-align:left;
            }
		    #top
            {
                background:url('/images/amdin_indx_top_bg.png') no-repeat;
                width:100%;
                height:47px;
                margin:0 auto;
                text-align:right;
            }
            
            #userInfo
            {
                text-align:right;
                padding-right:10px;
                margin:0 auto;
                height:30px;
                padding-top:8px;
            }
		</style>

</head>
<body class="easyui-layout" id="layout">
    <div data-options="region:'north',border:false" style="height:50px;padding:0px">
         <div id="top">
            <div id="userInfo">管理员,欢迎您 【<a href="/handler/Validate.ashx?Action=AdminLogout">退出</a>】</div>
         </div>
     </div>
	<div id="leftMenu" data-options="region:'west',split:true,title:'菜单'" style="width:180px;padding:0px; overflow:hidden;">
        
        <div class="easyui-accordion" data-options="fit:true,border:false">
            <div title="组织架构" style="padding:3px;overflow:auto;">
                <a href="javascript:void(0)" onclick="open1('部门管理','DeptManager.aspx')" class="easyui-linkbutton" data-options="plain:true" style="width:92%;">部门管理</a>
                <a href="javascript:void(0)" onclick="open1('角色管理','RoleManager.aspx')" class="easyui-linkbutton" data-options="plain:true" style="width:92%;">角色管理</a>
                <a href="javascript:void(0)" onclick="open1('用户管理','UserManager.aspx')" class="easyui-linkbutton" data-options="plain:true" style="width:92%;">用户管理</a>  
            </div>
            
            <div title="系统管理" style="padding:3px;overflow:auto;">
                <a href="javascript:void(0)" onclick="open1('权限管理','UserManagerPrivilege.aspx')" class="easyui-linkbutton" data-options="plain:true" style="width:92%;">权限管理</a>
                <a href="javascript:void(0)" onclick="open1('用户关系','UserManagerRelation.aspx')" class="easyui-linkbutton" data-options="plain:true" style="width:92%;">用户关系</a>
            </div>
        </div>
    </div>
	<div data-options="region:'center',border:true" id="mainDiv">
	     <div id="tt" class="easyui-tabs" fit="true" border="false" plain="true">
			<div title="欢迎页" href=""></div>
	      </div>
	</div>
</body>
</html>
